﻿// -------------------------------------------------------------------------
//    @FileName         :    ProtoUtil.h
//    @Author           :    gaoyi
//    @Date             :    24-8-1
//    @Email            :    445267987@qq.com
//    @Module           :    ProtoUtil
//
// -------------------------------------------------------------------------

#pragma once

#include <proto_client2access.pb.h>

#include "NFComm/NFCore/NFPlatform.h"

class GameApi;

class ProtoUtil
{
public:
	static int  MakeAuthSyn(GameApi& oClient, int iUin);
	static int  MakeAuthAck(GameApi& oClient, int iUin);
	static int  MakeLoginReq(GameApi& oClient, int iUin);
	static bool IsPacketComplete(const char* szPackBuf, int iPackLen);
	static int  UnpackC2AHead(char* szPackBuf, int iPackLen, proto_client2access::C2AMsgHead& oMsgHead, int& iHeadLen, int& iDataLen);
};
